package com.magicborrow.beans;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ghost on 16/5/26.
 */
public class StuffBean implements Serializable {
    private String address;
    private int box;
    private String created;
    private int deleted;
    private int deposit;
    private String description;
    private int id;
    private double lat;
    private int lendMode;
    private double lon;
    private String name;
    private int price;
    private int priceMode;
    private int status;
    private boolean favor;
    private int favors;
    private int commentCount;

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public boolean isFavor() {
        return favor;
    }

    public void setFavor(boolean favor) {
        this.favor = favor;
    }

    public int getFavors() {
        return favors;
    }

    public void setFavors(int favors) {
        this.favors = favors;
    }

    /**
     * avatar : /dist/images/ava/default.png
     * avatar80 : /dist/images/ava/default.png
     * birthday : 1990-01-01
     * borrowScale : 0
     * borrowTimes : 0
     * city :
     * cityId : 0
     * created : 2016-05-10 11:33
     * gender : 1
     * id : 2
     * lat : 0
     * lendScale : 0
     * lendTimes : 0
     * lon : 0
     * mobile : 13800138000
     * nickname : m13800138000
     * password : 123456
     * signature :
     * status : 0
     * studentStatus : 0
     * updated : 2016-05-10 11:33
     */

    private UserEntity user;
    /**
     * created : 1462858823000
     * height : 251
     * id : 7
     * origin : /store/origin//2016/0510/10134023cizw.jpg
     * preview : /store/thumbs//2016/0510/10134023lc4q.jpg
     * targetId : 4
     * width : 268
     */

    private List<ImagesEntity> images;
    /**
     * created : 2016-05-10 11:37
     * grayIcon : /store/thumbs/2016/0511/11112452b6kw.png
     * icon : /store/thumbs/2016/0511/111124510fu9.png
     * id : 7
     * name : 出行代步
     */

    private List<TagBean> tags;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getBox() {
        return box;
    }

    public void setBox(int box) {
        this.box = box;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public int getDeposit() {
        return deposit;
    }

    public void setDeposit(int deposit) {
        this.deposit = deposit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public int getLendMode() {
        return lendMode;
    }

    public void setLendMode(int lendMode) {
        this.lendMode = lendMode;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPriceMode() {
        return priceMode;
    }

    public void setPriceMode(int priceMode) {
        this.priceMode = priceMode;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public UserEntity getUser() {
        return user;
    }

    public void setUser(UserEntity user) {
        this.user = user;
    }

    public List<ImagesEntity> getImages() {
        return images;
    }

    public void setImages(List<ImagesEntity> images) {
        this.images = images;
    }

    public List<TagBean> getTags() {
        return tags;
    }

    public void setTags(List<TagBean> tags) {
        this.tags = tags;
    }

    public static class UserEntity implements Serializable {
        private String avatar;
        private String avatar80;
        private String birthday;
        private float borrowScale;
        private int borrowTimes;
        private float lendScaleAVG; // 借出信用平均分，等于lendScale/lendTimes
        private float borrowScaleAVG; // 借用信用平均分，等于borrowScale/borrowTimes

        public float getLendScaleAVG() {
            return lendScaleAVG;
        }

        public void setLendScaleAVG(float lendScaleAVG) {
            this.lendScaleAVG = lendScaleAVG;
        }

        public float getBorrowScaleAVG() {
            return borrowScaleAVG;
        }

        public void setBorrowScaleAVG(float borrowScaleAVG) {
            this.borrowScaleAVG = borrowScaleAVG;
        }

        public void setLendScale(float lendScale) {
            this.lendScale = lendScale;
        }

        private String city;
        private int cityId;
        private String created;
        private int gender;
        private int id;
        private int lat;
        private float lendScale;
        private int lendTimes;
        private int lon;
        private String mobile;
        private String nickname;
        private String password;
        private String signature;
        private int status;
        private int studentStatus;
        private String updated;

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getAvatar80() {
            return avatar80;
        }

        public void setAvatar80(String avatar80) {
            this.avatar80 = avatar80;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public float getBorrowScale() {
            return borrowScale;
        }

        public void setBorrowScale(float borrowScale) {
            this.borrowScale = borrowScale;
        }

        public int getBorrowTimes() {
            return borrowTimes;
        }

        public void setBorrowTimes(int borrowTimes) {
            this.borrowTimes = borrowTimes;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public int getCityId() {
            return cityId;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public String getCreated() {
            return created;
        }

        public void setCreated(String created) {
            this.created = created;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getLat() {
            return lat;
        }

        public void setLat(int lat) {
            this.lat = lat;
        }

        public float getLendScale() {
            return lendScale;
        }

        public void setLendScale(int lendScale) {
            this.lendScale = lendScale;
        }

        public int getLendTimes() {
            return lendTimes;
        }

        public void setLendTimes(int lendTimes) {
            this.lendTimes = lendTimes;
        }

        public int getLon() {
            return lon;
        }

        public void setLon(int lon) {
            this.lon = lon;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getSignature() {
            return signature;
        }

        public void setSignature(String signature) {
            this.signature = signature;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getStudentStatus() {
            return studentStatus;
        }

        public void setStudentStatus(int studentStatus) {
            this.studentStatus = studentStatus;
        }

        public String getUpdated() {
            return updated;
        }

        public void setUpdated(String updated) {
            this.updated = updated;
        }
    }

    public static class ImagesEntity implements Serializable {
        private String created;
        private int height;
        private int id;
        private String origin;
        private String preview;
        private int targetId;
        private int width;

        public String getCreated() {
            return created;
        }

        public void setCreated(String created) {
            this.created = created;
        }

        public int getHeight() {
            return height;
        }

        public void setHeight(int height) {
            this.height = height;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getOrigin() {
            return origin;
        }

        public void setOrigin(String origin) {
            this.origin = origin;
        }

        public String getPreview() {
            return preview;
        }

        public void setPreview(String preview) {
            this.preview = preview;
        }

        public int getTargetId() {
            return targetId;
        }

        public void setTargetId(int targetId) {
            this.targetId = targetId;
        }

        public int getWidth() {
            return width;
        }

        public void setWidth(int width) {
            this.width = width;
        }
    }


}
